import request from '@/utils/request'

// 查询报修申请列表
export function listRepairApplication(query) {
  return request({
    url: '/system/repairApplication/list',
    method: 'get',
    params: query
  })
}

// 查询报修申请详细
export function getRepairApplication(id) {
  return request({
    url: '/system/repairApplication/' + id,
    method: 'get'
  })
}

// 新增报修申请
export function addRepairApplication(data) {
  return request({
    url: '/system/repairApplication',
    method: 'post',
    data: data
  })
}

// 修改报修申请
export function updateRepairApplication(data) {
  return request({
    url: '/system/repairApplication',
    method: 'put',
    data: data
  })
}

// 删除报修申请
export function delRepairApplication(id) {
  return request({
    url: '/system/repairApplication/' + id,
    method: 'delete'
  })
}
